<form id="newResourceForm" class="layui-form layui-form-pane" action="#(baseUrl)/setting/resources" method="post"
      style="margin-top: 15px; margin-left: 15px; margin-right: 15px;">
    <div class="layui-form-item">
        <label class="layui-form-label">父资源名称</label>
        <div class="layui-input-block">
            <input id="parentName" type="text" name="parentName" readonly autocomplete="off" class="layui-input">
        </div>
    </div>
    <input type="hidden" name="parentId" id="parentId">
    <div class="layui-form-item">
        <label class="layui-form-label">资源名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" required  lay-verify="required" placeholder="请输入资源名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">资源编码</label>
        <div class="layui-input-block">
            <input type="text" name="code" required  lay-verify="required" placeholder="请输入资源编码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <input id="type" type="hidden" name="type">
    <div class="layui-form-item">
        <label class="layui-form-label">资源类型</label>
        <div class="layui-input-block">
            <input id="typeName" type="text" readonly class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">资源图标</label>
        <div class="layui-input-block">
            <input type="text" name="icon" placeholder="请输入资源图标" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">资源链接</label>
        <div class="layui-input-block">
            <input type="text" name="action" placeholder="请输入资源链接" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">资源权限</label>
        <div class="layui-input-block">
            <input type="text" name="permission" placeholder="请输入资源权限" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="checkbox" name="isEnable" lay-skin="switch" value="1" checked>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block" style="text-align: center">
            <button class="layui-btn" lay-submit lay-filter="resource">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>